\hypertarget{thread_8h}{
\section{Referência ao ficheiro thread.h}
\label{thread_8h}\index{thread.h@{thread.h}}
}
Arquivo responsável pela criação de threads. 

\subsection*{Macros}
\begin{CompactItemize}
\item 
\#define \hyperlink{thread_8h_8f0f9587389901f5f0b1a5be4c6832d1}{NLB\_\-THREADS\_\-SIZE}~2
\end{CompactItemize}
\subsection*{Funções}
\begin{CompactItemize}
\item 
int \hyperlink{thread_8h_6e122a678ab2f0b6f13a266c214813eb}{nlb\_\-thread\_\-init} (void)
\begin{CompactList}\small\item\em Cria threads para enviar e receber mensagens UDP. \item\end{CompactList}\item 
int \hyperlink{thread_8h_7c8900a7756e71bec1ed910214a1bfd9}{nlb\_\-thread\_\-exit} (void)
\begin{CompactList}\small\item\em Encerra os threads. \item\end{CompactList}\end{CompactItemize}
\subsection*{Variáveis}
\begin{CompactItemize}
\item 
struct \hyperlink{structksock__thread__t}{ksock\_\-thread\_\-t} $\ast$$\ast$ \hyperlink{thread_8h_e07c427473a6b2ff701b4f72702091eb}{nlb\_\-kthreads} \mbox{[}NLB\_\-THREADS\_\-SIZE\mbox{]}
\end{CompactItemize}


\subsection{Descrição detalhada}
Arquivo responsável pela criação de threads. 



Definido no ficheiro \hyperlink{thread_8h-source}{thread.h}.

\subsection{Documentação das macros}
\hypertarget{thread_8h_8f0f9587389901f5f0b1a5be4c6832d1}{
\index{thread.h@{thread.h}!NLB\_\-THREADS\_\-SIZE@{NLB\_\-THREADS\_\-SIZE}}
\index{NLB\_\-THREADS\_\-SIZE@{NLB\_\-THREADS\_\-SIZE}!thread.h@{thread.h}}
\subsubsection[NLB\_\-THREADS\_\-SIZE]{\setlength{\rightskip}{0pt plus 5cm}\#define NLB\_\-THREADS\_\-SIZE~2}}
\label{thread_8h_8f0f9587389901f5f0b1a5be4c6832d1}




Definido na linha 9 do ficheiro thread.h.

Referenciado por nlb\_\-thread\_\-exit() e nlb\_\-thread\_\-init().

\subsection{Documentação das funções}
\hypertarget{thread_8h_7c8900a7756e71bec1ed910214a1bfd9}{
\index{thread.h@{thread.h}!nlb\_\-thread\_\-exit@{nlb\_\-thread\_\-exit}}
\index{nlb\_\-thread\_\-exit@{nlb\_\-thread\_\-exit}!thread.h@{thread.h}}
\subsubsection[nlb\_\-thread\_\-exit]{\setlength{\rightskip}{0pt plus 5cm}int nlb\_\-thread\_\-exit (void)}}
\label{thread_8h_7c8900a7756e71bec1ed910214a1bfd9}


Encerra os threads. 



Definido na linha 45 do ficheiro thread.h.

Referências hb\_\-udp\_\-server\_\-thread e NLB\_\-THREADS\_\-SIZE.

Referenciado por nlb\_\-exit\_\-module().\hypertarget{thread_8h_6e122a678ab2f0b6f13a266c214813eb}{
\index{thread.h@{thread.h}!nlb\_\-thread\_\-init@{nlb\_\-thread\_\-init}}
\index{nlb\_\-thread\_\-init@{nlb\_\-thread\_\-init}!thread.h@{thread.h}}
\subsubsection[nlb\_\-thread\_\-init]{\setlength{\rightskip}{0pt plus 5cm}int nlb\_\-thread\_\-init (void)}}
\label{thread_8h_6e122a678ab2f0b6f13a266c214813eb}


Cria threads para enviar e receber mensagens UDP. 



Definido na linha 16 do ficheiro thread.h.

Referências hb\_\-get\_\-udp\_\-client\_\-thread(), hb\_\-get\_\-udp\_\-server\_\-thread(), NLB\_\-THREADS\_\-SIZE e ksock\_\-thread\_\-t::thread.

Referenciado por nlb\_\-init\_\-module().

\subsection{Documentação das variáveis}
\hypertarget{thread_8h_e07c427473a6b2ff701b4f72702091eb}{
\index{thread.h@{thread.h}!nlb\_\-kthreads@{nlb\_\-kthreads}}
\index{nlb\_\-kthreads@{nlb\_\-kthreads}!thread.h@{thread.h}}
\subsubsection[nlb\_\-kthreads]{\setlength{\rightskip}{0pt plus 5cm}struct {\bf ksock\_\-thread\_\-t}$\ast$$\ast$ {\bf nlb\_\-kthreads}\mbox{[}NLB\_\-THREADS\_\-SIZE\mbox{]}}}
\label{thread_8h_e07c427473a6b2ff701b4f72702091eb}




Definido na linha 11 do ficheiro thread.h.